@fz10: 10px;
@fz12: 12px;
@fz14: 14px;
@fz16: 16px;
@color-h1: #111111;
@color-h2: #656565;
@color-h3: #919191;
@color-h4: #DF0011;
@color-bg: #f3f4f5;
@theme-color: #DF0011;
page {
  font-size: 14px;
  box-sizing: border-box;
  background: #f3f4f5;
}

.main {
  padding-top: 44px;
}

image {
  width: 10px;
  height: 10px;
}

.hack-position {
  position: fixed;
  width: 100%;
  top: 0;
  height: 0;
  z-index: 1001;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  .headtab {
    transform: translateY(8px);
  }
}

.headtab {
  width: 220px;
  height: 28px;
  display: flex;
  background: #fff;
  border-radius: 3px;
  .btn {
    flex: 1;
    color: rgba(243, 187, 182, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 300ms;
    &:active {
      opacity: .8;
    }
  }
  .btn--active {
    border-radius: 3px;
    background: @theme-color;
    color: #fff;
  }
}

// box css
.box-lr {
  display: flex;
  flex-direction: row;
}

.box-tb {
  display: flex;
  flex-direction: column;
}

.flex {
  flex: 1;
}

.justify-center {
  justify-content: center;
}

.align-center {
  align-items: center;
}

// list css
.list {
  padding: 0 12px;
  font-size: 12px;
  &__item {
    margin-bottom: 10px;
    background: #fff;
    box-shadow: 0px 0px 8px 1px rgba(230, 0, 18, 0.04);
    border-radius: 5px;
  }
}

// hairline
.hairline {
  width: 100%;
  height: 1px;
  position: relative;
  &::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 200%;
    height: 1px;
    transform: scale(.5);
    transform-origin: left bottom;
    background: #dddddd;
  }
}

.activity {
  &__t {
    padding: 10px;
  }
  &__b {
    padding: 10px;
  }
  .activity-count {
    padding: 10px 0;
  }
  .activity-num {
    margin-bottom: 5px;
    font-size: 30px;
    color: @color-h1;
    font-weight: bold;
  }
  .activity-store {
    margin-bottom: 5px;
    font-size: 10px;
    color: @color-h2;
  }
  .activity-name {
    color: #DF0011;
    font-weight: bold;
    font-size: 14px;
    .badge {
      min-width: 16px;
      height: 16px;
      margin-left: 10px;
      background: @theme-color;
      color: #fff;
      border-radius: 8px;
      text-align: center;
      line-height: 16px;
    }
  }
  .activity-status {
    color: @color-h2;
    display: flex;
    align-items: center;
    .icon {
      width: 20px;
      height: 20px;
      border-radius: 4px;
      background: #eee;
    }
    >image {
      margin-left: 10px;
    }
  }
  .line {
    line-height: 2;
    .line__key {
      color: @color-h2;
      width: 85px;
      font-weight: 500;
    }
    .line__val {
      color: @color-h1;
      font-weight: bold;
      flex: 1;
      display: flex;
      align-items: center;
    }
    .line__val--red {
      color: @theme-color;
    }
  }
}

// search
.search-wrap {
  margin-bottom: 10px;
}

.bar1 {
  padding: 0 12px;
  &__l1 {
    display: flex;
    align-items: center;
    height: 44px;
    .l {
      flex: 1;
      font-size: @fz12;
      color: @color-h2;
    }
    .r {
      flex-shrink: 0;
      .icon {
        width: 20px;
        height: 20px;
      }
    }
  }
}

.bar2 {
  &__l2 {
    height: 44px;
    display: flex;
    border-bottom: 1px solid rgba(243, 190, 185, 1);
    .el {
      flex: 1;
      height: 44px;
      display: flex;
      align-items: center;
      position: relative;
      justify-content: center;
      font-size: @fz12;
      color: @color-h3;
      .el__b {
        display: none;
      }
    }
    .el--active {
      color: @theme-color;
      .el__b {
        display: block;
        position: absolute;
        left: 50%;
        bottom: 0;
        width: 10px;
        height: 4px;
        background: linear-gradient(90deg, rgba(230, 0, 18, 1), rgba(255, 129, 109, 1));
        transform: translateX(-5px);
      }
    }
  }
  &__l1 {
    padding: 0 12px;
    display: flex;
    align-items: center;
    height: 44px;
    .l {
      flex: 1;
      font-size: @fz12;
      color: @color-h2;
    }
    .r {
      flex-shrink: 0;
      .icon {
        width: 20px;
        height: 20px;
      }
    }
  }
  &__l3 {
    padding: 0 12px;
  }
}

// 
.name {
  font-size: @fz16;
  color: @color-h2;
}

.status {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  &__l {
    color: @theme-color;
  }
  &__r {
    width: 20px;
    height: 20px;
  }
}

.btn-group {
  padding-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.btn {
  width: 80px;
  height: 28px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: @fz12;
  border-radius: 3px;
  transition: opacity 300ms;
  &:last-child {
    margin-right: 0;
  }
  &:active {
    opacity: .7;
  }
}

.btn--1 {
  border: 1px solid @color-h3;
  color: @color-h3;
}

.btn--2 {
  border: 1px solid @theme-color;
  color: @theme-color;
}